module.exports = function(number, m = 2) {
    var value = number
    var bit = m
    var pow = Math.pow(10, bit)
    var arr = (value*pow).toString().split(".")
    var result = ""
    if(arr[1] && arr[1].split('')[0] > 4){
        result = (Number(arr[0]) + 1) / pow
    }else{
        result = arr[0] / pow
    }
    result = result.toString()

    if(bit <= 0) return result;

    if(result.indexOf('.') < 0) result += '.'
    var hasBit = result.split('.')[1] ? result.split('.')[1].length : 0;
    return result + new Array(bit - hasBit + 1).join('0')
}